import request from '@/utils/request';

export type LoginParamsType = {
  LOGIN_NAME: string;
  LOGIN_PASS: string;
};
export type Clickrate = {
  id: string;
  loginName: string;
  positionId: string;
  positionName: string;
  provinceCode: string;
  provinceName: string;
  resourceCode: string;
  staffName: string;
  time: string;
};
export async function getStaffInfo() {
  return request('/mdop/login/staffinfo', {
    method: 'GET',
  });
}

export async function getStaffInfoSource(params: any) {
  return request('/mdop/login/staffresource', {
    // method: 'GET',
    method: 'POST',
    data: params,
  });
}
export async function clickrate(params: Clickrate) {
  return request('/mdop/operate/clickrate', {
    method: 'POST',
    data: params,
  });
}
export async function selectVersion() {
  return request('/mdop/select', {
    method: 'POST',
  });
}

// export async function query(): Promise<any> {
//   return request('/api/users');
// }

// export async function queryCurrent(): Promise<any> {
//   return request('/api/currentUser');
// }

// export async function queryNotices(): Promise<any> {
//   return request('/api/notices');
// }
